﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace CompanyHubServer.Models
{
    public class Package
    {
        [Key]
        public int Id { get; set; }

        #region Properties pulled from app package
        // Unique Guid to identify package
        public Guid PackageId { get; set; }

        // Name of app
        public string Title { get; set; }

        public string Author { get; set; }

        public string Publisher { get; set; }

        public string EnterpriseId { get; set; }

        public Guid PublisherId { get; set; }

        // String representation of current version
        public string Version { get; set; }
        #endregion

        // Description of app
        public string Description { get; set; }

        // Identifies which app is the company hub app. Should only be one
        public bool IsCompanyHub { get; set; }

        #region Properties managed by system

        public string Thumbnail { get; set; }

        public string SourceUri { get; set; }

        public bool IsActive { get; set; }

        public bool IsHistory { get; set; }

        public DateTime UpdatedDT { get; set; }
        #endregion


    }
}